<template>
	<view class="detaill-talk u-f ":class="{'dateill-talk-isfaher':item.faid!=0}" >
		<view class="detaill-talk-l" @tap="gouserinfo">
			<image class="heardimg" :src="item.userimg" mode="widthFix" lazy-load></image>
		</view>
		<view class="detaill-talk-r">
			<view class="detaill-talk-name">
				{{item.username}}
			</view>
			<view class="detaill-talk-text">
				{{item.data}}
			</view>
			<view class="detaill-talk-time">
				{{item.time}}
			</view>						
		</view>
	</view>
</template>

<script>
	import time from '../../common/time.js'
	export default{
		props:{
			item:Object
		},
		methods:{
			gouserinfo(){
				uni.navigateTo({
					url:'../../pages/user/user'
				})
			},
		}
	}
</script>

<style scoped>
	
	.heardimg{
		width: 100upx;
		height: 100upx;
		border-radius: 50%;
	}
	.dateill-talk-isfaher{
		background-color: #F4F4F4;
		padding: 20upx 20upx;
		margin-left: 120upx;
	}
	
	.detaill-talk-r{
		margin-left: 20upx;
	}
	.detaill-talk-text{
		
		color: #181818;
		font-size: 30upx;
		margin: 5upx 0;
	}
	.detaill-talk-name{
		color: #0A98D5;
		font-size: 28upx;
		margin: 5upx 0;
	}
	.detaill-talk-time{
		color:#868686;
		font-size: 25upx;
		margin: 5upx 0;
		
	}
</style>
